From f32d40076720284ffd928e649dd6b9175176f0bb Mon Sep 17 00:00:00 2001 From: Alastair Tse Date: Wed, 31 Jan 2007 15:02:20 +0000 Subject: [PATCH] [XEND] Hide other_config from console and vfb SXP to prevent string representation of dict to appear in SXP. Signed-off-by: Alastair Tse --- tools/python/xen/xend/XendConfig.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/python/xen/xend/XendConfig.py b/tools/python/xen/xend/XendConfig.py index f17a5a2295..a3c5398b49 100644 --- a/tools/python/xen/xend/XendConfig.py +++ b/tools/python/xen/xend/XendConfig.py @@ -1223,7 +1223,12 @@ class XendConfig(dict): "configuration dictionary.") sxpr.append(dev_type) - config = [(opt, val) for opt, val in dev_info.items()] + if dev_type in ('console', 'vfb'): + config = [(opt, val) for opt, val in dev_info.items() + if opt != 'other_config'] + else: + config = [(opt, val) for opt, val in dev_info.items()] + sxpr += config return sxpr -- 2.30.2